#include"Pool.hpp"
#include"Task.hpp"
#include"Thread.hpp"


int main()
{
    ThreadPool<CalTask>::getInstance()->run();
    int x,y;
    char op;
    while(1)
    {
        std::cout << "请输入数据1# ";
        std::cin >> x;
        std::cout << "请输入数据2# ";
        std::cin >> y;
        std::cout << "请输入你要进行的运算#";
        std::cin >> op;
        CalTask t(x, y, op, mymath);

        ThreadPool<CalTask>::getInstance()->push(t);
        sleep(1);
    } 
    return 0;
}